package cn.sy.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-12-10
 */
@TableName("t_bom")
public class Bom extends Model<Bom> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 物料名字
     */
    @TableField("bill_name")
    private String billName;
    /**
     * 规格型号
     */
    private String model;
    /**
     * 材质
     */
    @TableField("material_quality")
    private String materialQuality;
    /**
     * 规格单位
     */
    private String specs;
    /**
     * 生产用量
     */
    @TableField("production_volume")
    private String productionVolume;
    /**
     * 计量单位
     */
    @TableField("unit_measurement")
    private String unitMeasurement;

    @TableField("order_ref")
    private String orderRef;

    @TableField("status")
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOrderRef() {
        return orderRef;
    }

    public void setOrderRef(String orderRef) {
        this.orderRef = orderRef;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBillName() {
        return billName;
    }

    public void setBillName(String billName) {
        this.billName = billName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getMaterialQuality() {
        return materialQuality;
    }

    public void setMaterialQuality(String materialQuality) {
        this.materialQuality = materialQuality;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getProductionVolume() {
        return productionVolume;
    }

    public void setProductionVolume(String productionVolume) {
        this.productionVolume = productionVolume;
    }

    public String getUnitMeasurement() {
        return unitMeasurement;
    }

    public void setUnitMeasurement(String unitMeasurement) {
        this.unitMeasurement = unitMeasurement;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Bom{" +
        ", id=" + id +
        ", billName=" + billName +
        ", model=" + model +
        ", materialQuality=" + materialQuality +
        ", specs=" + specs +
        ", productionVolume=" + productionVolume +
        ", unitMeasurement=" + unitMeasurement +
        "}";
    }
}
